package com.xgst.runningmanager.fragment

import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.fragment.app.Fragment
import com.blankj.utilcode.util.ActivityUtils
import com.xgst.runningmanager.ErrorListActivity
import com.xgst.runningmanager.OrderListActivity
import com.xgst.runningmanager.databinding.ActivityMineBinding

class MineFragment:Fragment() {
    private lateinit var binding:ActivityMineBinding
    override fun onCreateView(
        inflater: LayoutInflater,
        container: ViewGroup?,
        savedInstanceState: Bundle?
    ): View? {
        binding = ActivityMineBinding.inflate(inflater,container,false)
        init()
        return binding.root
    }

    private fun init() {
        binding.btn1.setOnClickListener {
            //巡检列表
            ActivityUtils.startActivity(OrderListActivity::class.java)
        }

        binding.btn2.setOnClickListener {
            ActivityUtils.startActivity(ErrorListActivity::class.java)
        }
    }
}